package com.abeir.bilibili.convert;

import java.io.*;

public class VideoAudioConverter implements Converter<RandomAccessFile, RandomAccessFile> {

    @Override
    public RandomAccessFile convert(RandomAccessFile input) throws Exception {
//    去除头部的全部 0x30

        skipBegin(input);
        return input;
    }

    private void skipBegin(RandomAccessFile input) throws IOException {
        int index = 0;
        while (input.read() == 0x30) {
            index++;
        }
        input.seek(index);
    }
}
